#include <linux/module.h>
#include <linux/version.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/sched.h>
#include <linux/pm.h>
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/irq.h>
#include <asm/uaccess.h>
#include <asm/io.h>



static struct resource led_res[] ={
	[0] = {
		.start = 0x00,
		.end =  0x01,
		.flags = IORESOURCE_MEM,
	},

	[1] = {
		.start = 5,
		.end   = 5,
		.flags = IORESOURCE_IRQ,
	}
};

static void chr_release(struct device *dev)
{

	return;
}

static struct platform_device  led_dev= {
	.name = "led",
	.id = -1,
	.num_resources = ARRAY_SIZE(led_res),
	.resource = led_res,
	.dev = {
		.release = chr_release,
	}
};

static int led_dev_init(void)
{
	platform_device_register(&led_dev);

	return 0;
}

static void led_dev_exit(void)
{
	platform_device_unregister(&led_dev);
	return ;
}

module_init(led_dev_init);
module_exit(led_dev_exit);

MODULE_LICENSE("GPL");


